/*
 * Copyright (c) 2008-2021 浩瀚深度 All Rights Reserved.
 *
 * <p>FileName: ChatReq.java</p>
 *
 * @author zz
 * @date 2024/4/7
 * @version 1.0
 * History:
 * v1.0.0 2024/4/7 Create
 */
package com.haohan.mess.entity;

import lombok.Data;

import java.util.List;

/**
 * <p>Title: ChatReq</p>
 * <p>Description: </p>
 *
 * @author zz
 */
@Data
public class ChatReq {
    private String token;
    private int n;
    private List<Message> messages;
    private Boolean stream;

    // Message内部类用于匹配messages列表中的条目
    public static class Message {
        private String role;
        private String content;

        public String getRole() {
            return role;
        }

        public void setRole(String role) {
            this.role = role;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

    }

}
